package com.qingmu.club.minaapi.plus.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户分享送积分表
 * </p>
 *
 * @author duke
 * @since 2019-12-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class IntegralSharePresent extends Model<IntegralSharePresent> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    /**
     * 创建人id
     */
    private String createUser;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 二次分享赠送积分数量
     */
    private Integer twiceShareIntegral;

    /**
     * 分享赠送积分数量
     */
    private Integer shareIntegral;

    /**
     * 关注送积分数量
     */
    private Integer attentionIntegral;

    /**
     * 点击赠送积分数量
     */
    private Integer clickIntegral;

    /**
     * 开始时间
     */
    private Date startTime;

    /**
     * 结束时间
     */
    private Date endTime;

    /**
     * 状态 0-禁用 1-启用
     */
    private Integer status;

    /**
     * 俱乐部id
     */
    private String clubId;

    /**
     * 创建人姓名
     */
    private String createUserName;

    /**
     * 长期有效0-否1-是
     */
    private Integer isAlways;


    public static final String ID = "id";

    public static final String CREATE_USER = "create_user";

    public static final String CREATE_TIME = "create_time";

    public static final String TWICE_SHARE_INTEGRAL = "twice_share_integral";

    public static final String SHARE_INTEGRAL = "share_integral";

    public static final String ATTENTION_INTEGRAL = "attention_integral";

    public static final String CLICK_INTEGRAL = "click_integral";

    public static final String START_TIME = "start_time";

    public static final String END_TIME = "end_time";

    public static final String STATUS = "status";

    public static final String CLUB_ID = "club_id";

    public static final String CREATE_USER_NAME = "create_user_name";

    public static final String IS_ALWAYS = "is_always";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
